Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 768b4bd13e3824211d13feb288279171daf27cf0


Parents : 7eea421
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-06-05T20:15:57-05:00

fix(tests): update assertion count for message state updates in failure handling test

Changes

1 files changed, 3 insertions(+), 1 deletions(-)


Diff

diff --git a/tests/backend/test_message_sending_failures.py b/tests/backend/test_message_sending_failures.py
index 618c8856..fb1a6e69 100644
--- a/tests/backend/test_message_sending_failures.py
+++ b/tests/backend/test_message_sending_failures.py
@@ -210,7 +210,9 @@ async def test_handle_lxmf_message_progress_continues_while_propagation_fallback
)
assert iteration == 2
- assert mock_app.database.messages.update_lxmf_message_state.call_count == 2
+ # Initial failed update, one more while propagation fallback is still pending,
+ # then the final propagated update after the second sleep.
+ assert mock_app.database.messages.update_lxmf_message_state.call_count == 3
@pytest.mark.asyncio


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────